package com.hjqjl.module_launcher.ui;

import android.os.Bundle;

import com.alibaba.android.arouter.facade.annotation.Route;
import com.alibaba.android.arouter.launcher.ARouter;
import com.blankj.utilcode.util.LogUtils;
import com.hjqjl.module_launcher.databinding.LauncherActivityMainBinding;
import com.hjqjl.whapplib.base.BaseActivity;
import com.hjqjl.whapplib.router.RouterPath;

// 在支持路由的页面上添加注解(必选)
// 这里的路径需要注意的是至少需要有两级，/xx/xx
@Route(path = RouterPath.LAUNCHER_MAIN)
public class MainActivity extends BaseActivity<LauncherActivityMainBinding> {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setTitle("this is Launcher-->MainActivity");
        LogUtils.v("this is Launcher");

        pVBinding.launcherBtnMainWelcome.setOnClickListener(v -> LauncherSelectActivity.start(pContext));
        pVBinding.launcherBtnMainToModuleMain.setOnClickListener(v -> {
                    ARouter.getInstance().build(RouterPath.MAIN_MAIN).navigation();
                    finish();
                }
        );
    }
}